package net.mgsx.product.t2m.modisco.quality;
import net.mgsx.product.t2m.modisco.tools.QualityUtils;

import org.eclipse.gmt.modisco.infra.query.core.exception.ModelQueryExecutionException;
import org.eclipse.gmt.modisco.infra.query.core.java.IJavaModelQuery;
import org.eclipse.gmt.modisco.infra.query.core.java.ParameterValueList;
import org.eclipse.gmt.modisco.java.ASTNode;

public class HasNoComment implements IJavaModelQuery<ASTNode, Boolean> {
	public Boolean evaluate(final ASTNode context, final ParameterValueList parameterValues)
			throws ModelQueryExecutionException {
		
		return QualityUtils.isNotProxy(context) && 
				!QualityUtils.hasJavaDoc(context);
		
	}
}
